/<template>
  <div class="all">
    <dl v-for="(item,index) in book" :key="index">
      <dt><img :src="item.img"></dt>
      <dd>{{item.name}}</dd>
    </dl>
  </div>
</template>

<script>
import axios from "axios"
export default {
  data(){
    return{
      book:[],
    }
  },
    mounted()
    {
        axios.get("/book").then((res) => {
          this.book=res.data;
        })
    }
}
</script>

<style>

</style>